package net.sk.china.city.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDate;
import java.util.Date;

/**
 * 商品详情对象 ar_product_details
 * 
 * @author gxf
 * @date 2024-03-27
 */
@Data
public class ArProductDetails
{
    private static final long serialVersionUID = 1L;

    /** 详情id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 品牌 */
    private String brand;

    /** 风格 */
    private String style;

    /** 功能性 */
    private String functionality;

    /** 服务介绍 */
    private String serviceIntroduce;

    /** 详情图片 */
    private String imgUrl;



    /** 保质期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate sellByDate;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("brand", getBrand())
                .append("style", getStyle())
                .append("functionality", getFunctionality())
                .append("serviceIntroduce", getServiceIntroduce())
                .append("imgUrl", getImgUrl())
                .append("sellByDate", getSellByDate())
                .toString();
    }
}
